<?php
if(!defined('IN_SONG')) exit('No direct script access allowed');  
/**
 * Class Home Module
 * 
 * @package         Module
 * @subpackage      Test
 * @version         0.1
 * @copyright       Song (c) 2011
 */   
class HomeController extends Controller
{
    var $name = 'Home';
                            
    function __construct() {
        parent::__construct();    
    }   
    
    public function index() {
        $this->Template->setFile('Home', 'home.html');
        $this->Template->setVar('test', 'Dac Diep Vuong');
        //return $this->Template->output('Home');
        $this->Template->parse('OUT', 'Home');
        return $this->Template->p('OUT');
    } 
    /*
    
    function isSubmit()
    {
         
    }
    
    function draw() {                 
        $this->Template->setFile('Home', 'home.html');
        $this->Template->setVar('test', 'Dac Diep Vuong');
        //return $this->Template->output('Home');
        $this->Template->parse('OUT', 'Home');
        return $this->Template->p('OUT');   
    }     */
} 
?>
